﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Elysium.Controls;
using SIIE_ERP.Codigo;

namespace Elysium.Demo.Configuracion.Empresa
{
    /// <summary>
    /// Lógica de interacción para Menu_Configuracion.xaml
    /// </summary>
    public partial class Menu_Empresa : UserControl
    {
        private UsuarioActivo _sesion;

        public Menu_Empresa(ref UsuarioActivo usuario)
        {
            InitializeComponent();
            this._sesion = usuario;
        }

        private void ButtonEmpresa_Click(object sender, RoutedEventArgs e)
        {
            Grid_Elements.Children.Clear();
            Grid_Elements.Children.Add(new Series_Consulta(ref _sesion));

            UserControl Aux = (UserControl)Grid_Elements.Children[0];
            //Aux.HorizontalAlignment = System.Windows.HorizontalAlignment.Right;
            //Aux.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            Aux.Margin = new System.Windows.Thickness(0, 0, 0, 0);
            Grid.SetRow(Aux, 0);
            Grid.SetColumn(Aux, 1);
            Grid.SetColumnSpan(Aux, 2);
            Grid.SetRowSpan(Aux, 10);
        }

        private void ButtonUsuarios_Click(object sender, RoutedEventArgs e)
        {

        }

        private void ButtonSucursales_Click(object sender, RoutedEventArgs e)
        {

        }

        private void ButtonPresupuestoVenta_Click(object sender, RoutedEventArgs e)
        {

        }

        private void ButtonPagoLicencias_Click(object sender, RoutedEventArgs e)
        {

        }

        private void ButtonCompraTiempoAire_Click(object sender, RoutedEventArgs e)
        {

        }

        private void ButtonCompraCFDi_Click(object sender, RoutedEventArgs e)
        {

        }

        private void ButtonCargaDatos_Click(object sender, RoutedEventArgs e)
        {

        }

        private void UserControl_LayoutUpdated_1(object sender, EventArgs e)
        {
            try
            {
                UserControl Aux = (UserControl)Grid_Elements.Children[0];
                Aux.Width = this.ActualWidth - 200;
                Aux.Height = this.ActualHeight;
            }
            catch (Exception)
            {


            }
        }

        private void UserControl_SizeChanged_1(object sender, SizeChangedEventArgs e)
        {
            try
            {
                UserControl Aux = (UserControl)Grid_Elements.Children[0];
                Aux.Width = this.ActualWidth - 200;
                Aux.Height = this.ActualHeight;
            }
            catch (Exception)
            {


            }
        }
    }
}
